package br.com.dev.tcc.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class ViewPagerSinistroAdapter extends FragmentPagerAdapter {

	private Fragment f1;
	private Fragment f2;

	public ViewPagerSinistroAdapter(FragmentManager fm, Fragment f1, Fragment f2) {
		super(fm);
		this.f1 = f1;
		this.f2 = f2;
	}

	@Override
	public Fragment getItem(int position) {

		if(position == 0)
			return f1;
		if(position == 1)
			return f2;
		return null;
	}

	@Override
	public int getCount() {
		return 2;
	}
}
